<core:SET width='200'>
<core:SET inbox="inbox">

<core:SET title="New Players management">
<core:WRAP file="/adm/adm.layout.html" placeholder="Content">

<core:include file="/adm/inc/inc.adm.tabs.html">

<h1 align="center"> View the player submission {$name} </h1>

<form id="PlayerViewForm" name="PlayerViewForm" method="post" action="" runat="server">
<input name="player_id" type="hidden" id="player_id" runat="server">
<input name="page" type="hidden" id="page" runat="server">
<hr>
<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>

<table width="100%" border="0" align="center" cellspacing="2" cellpadding="3">
    <tr align="left">
    	<td class="whiteheader_center">
    		<core:optional for="player_id">
    			View the player (ID: {$player_id})
            </core:optional>
            <core:default for="player_id">
            	Create a new player
            </core:default>
         </td>
         <td class="whiteheader">
            <a href="/{$#app_name}/pub.myprofile.php"> My Profile </a> &nbsp;
           	<html:link url="/">All new players </html:link>  &nbsp;
           	<html:link url="/edit" param="player_id">Edit the player</html:link>
          </td>
     </tr>

    <core:default for="supress_errors">
    <ERRORSUMMARY id='Summary' runat="server">
        <tr valign="top">
          <td width="{width}">Errors: &nbsp;</td>
          <td class="left">
          	<FONT COLOR="RED">
          		<list:ITEM> {$ErrorMessage} &nbsp; </list:ITEM>
          	</FONT>
          </td>
        </tr>
     </ERRORSUMMARY>
     </core:default>

     <tr>
     	<td class="small" colspan="2">

     	</td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="player_id" runat="server">ID:</label>
       </td>
       <td class="form_field">
        	{$player_id}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="category" runat="server">Category:</label>
       </td>
       <td class="form_field">
        	{$category_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="status" runat="server">Status:</label>
       </td>
       <td class="form_field">
        	{$status_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="name" runat="server">Player name:</label>
       </td>
       <td class="form_field">
        	{$name}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="class" runat="server">Class:</label>
       </td>
       <td class="form_field">
        	{$class}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="position" runat="server">Position:</label>
       </td>
       <td class="form_field">
        	{$position}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="f" runat="server">Height/Weight: </label>
       </td>
       <td class="form_field">
        	{$height}/{$weight}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="f" runat="server">Gender: </label>
       </td>
       <td class="form_field">
        	{$gender_show}
       </td>
     </tr>



     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="url" runat="server">URL:</label>
       </td>
       <td class="form_field">
        	{$public_url}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="date" runat="server">Date Posted:</label>
       </td>
       <td class="form_field">
        	{$date_added}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="author" runat="server">Author:</label>
       </td>
       <td class="form_field">
         <span class="small"> {$author_show} </span>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="f" runat="server">Contact phone: </label>
       </td>
       <td class="form_field">
        	{$contact_phone}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="f" runat="server">GPA: </label>
       </td>
       <td class="form_field">
        	{$gpa}%
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="f" runat="server">SAT: </label>
       </td>
       <td class="form_field">
        	{$sat}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="photo" runat="server">Photo:</label>
       </td>
       <td class="form_field">
         <core:optional for="photo_url">
         	<img id="img_picture_url" name="img_picture_url" src="{$photo_url}" border="0"/>
         	<br>
         	{$image_width}*{$image_height}
         </core:optional>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="school" runat="server">School:</label>
       </td>
       <td class="form_field">
         {$school_name}, {$school_address}, {$school_city}, {$school_state}&nbsp;
         {$school_zip}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="coach" runat="server">Coach:</label>
       </td>
       <td class="form_field">
         {$coach_name}, {$coach_phone}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Projected College Level:</label>
       </td>
       <td class="form_field">
         {$projected_level}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Why should a player be added to the official list:</label>
       </td>
       <td class="form_field">
         {$why_official_list}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Which colleges showed interest and which made offers:</label>
       </td>
       <td class="form_field">
         {$interest_offers}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="premium" runat="server">Premium content:</label>
       </td>
       <td class="form_field">
         {$premium_show}
       </td>
     </tr>

     <tr>
      <td class="whiteheader_center" colspan="2">&nbsp;</td>
     </tr>

	 <tr>
      <td>&nbsp;</td>
      <td class="form_field">
      		<core:default for="denied_show">
                <input type="submit" name="deny" value="Deny" runat="server">
            </core:default>
            <core:default for="published_show">
            	<input type="submit" name="publish" value="Accept/Publish" runat="server">
            </core:default>

            <input type="submit" name="players" value="Back to new players" runat="server">
            <core:optional for="next_available">
            	<input type="submit" name="viewnext" value="View next player" runat="server">
            </core:optional>
            <br>
            <html:link url="/edit" param="player_id">Edit the player</html:link>
            <html:link url="/delete" param="player_id">Delete the player</html:link>
      </td>
</tr>

</table>

<html:link url="/create" param="player_id">Create a new player</html:link>
</form>